#ifndef QTSCALETOEFFECT_H
#define QTSCALETOEFFECT_H

#include "QtSingleAnimationEffect.h"
#include <QPointF>

class QtScaleToEffect: public QtSingleAnimationEffect
{
public:
	QtScaleToEffect();
	QtScaleToEffect(const QtScaleToEffect& rhs);
	virtual ~QtScaleToEffect();

	void SetTarget(QtSprite *sprite);
	QtSprite* Target() const;

	void SetEndScale(unsigned int width, unsigned int height);
	QtAnimationEffect* Clone() const;

protected:
	void SetupAnimation();

private slots:
	void Update(qreal value);

private:
	int endWidth, endHeight;
	int startWidth, startHeight;
	QtSprite *target;
};

#endif //QTSCALETOEFFECT_H
